package com.njwb.thread;

/**
 * Description: 类的描述
 * Author: yuandeyin@itany.com
 * Date: 2025-08-06 16:05
 * Version: 1.0
 */
public class TestGame {
    public static void main(String[] args) {
        //找两个运动员 --线程对象
        Totorise totorise = new Totorise();
        Rabbit rabbit = new Rabbit();

        //预备开始 启动线程
        Thread t1 = new Thread(totorise);
        Thread t2 = new Thread(rabbit);
        System.out.println(t2.getPriority());
        t1.setName("乌龟");
        t2.setName("兔子");
        t1.start();
        t2.start();



    }
}
